# -*- coding:utf-8 -*-

from module_page.base_page import BasePage


class UserHomePage(BasePage):
    def into_train_enroll(self):  # 进入培训报名模块
        self.driver.get(
            self.user_base_url + '/homePage/GZWSignUpCenter?pageTitle=培训报名')

    def into_exercise_modular(self):  # 进入练习模块
        self.driver.get(
            self.user_base_url + '/homePage/onlineExerciseMainPage?pageTitle=练习')

    def into_regulation_modular(self):  # 进入制度模块
        self.driver.get(
            self.user_base_url + '/homePage/rule?pageTitle=制度')

    def into_examination_modular(self):  # 进入考试模块
        self.driver.get(
            self.user_base_url + '/homePage/formalExamMain?pageTitle=考试')

    def into_course_modular(self):  # 进入课程模块
        self.driver.get(
            self.user_base_url + '/homePage/courseMainPage?pageTitle=课程')
